/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webaccess.retailws.Delegate;

import com.webaccess.retailws.Bean.DealBean;
import com.webaccess.retailws.DAO.DealDAO;

/**
 *
 * @author Owner
 */
public class DealDelegate {

    DealDAO dealDAOObj = null;

    public DealDelegate() {
        dealDAOObj = new DealDAO();
    }

    public DealBean[] getAllDeal() {
        return dealDAOObj.getAllDeal();
    }

    public DealBean getDealDetails(Long dealId) {
        return dealDAOObj.getDealDetails(dealId);
    }

    public boolean deleteDeal(Long dealId) {
        return dealDAOObj.deleteDeal(dealId);
    }
}
